<template>
	<view>
		<view class="wrap">
			<u-empty v-if="list.length==0"></u-empty>
			<view class="" style="width: 100%;" v-else>
				<GoodsItem @handleAfterSale='handleAfterSale' @handDetailsNavTo='handleAfterSale' v-for="item in list"
					:key='item.id' :item='item'>
				</GoodsItem>
				<u-loadmore :status="status" />
			</view>

		</view>
	</view>
</template>

<script>
	import initData from '@/mixin/initData.js'
	import GoodsItem from '@/pages/order/components/OrderGoodsItem-2.vue'
	export default {
		mixins: [initData],
		components: {
			GoodsItem
		},
		data() {
			return {

			};
		},
		onLoad(e) {
			this.miXinInit()
		},
		computed: {

		},
		methods: {
			handleAfterSale(item) {
				uni.navigateTo({
					url: '/pages/afterSale/afterSaleDetails/afterSaleDetails?id=' + item.id
				})
			},

			// 请求前的参数处理
			beforeInit() {
				this.apiUrl = "afterSalesOrder/getAfterSalesOrderList";
				let params = {
					pageNum: this.pageNum,
					pageSize: this.pageSize,
				};

				this.params = {
					...params
				};
			},

		}
	};
</script>

<style>
	/* #ifndef H5 */
	page {
		height: 100%;
		background-color: #f2f2f2;
		/* min-height: 100vh; */
	}

	/* #endif */
</style>

<style lang="scss" scoped>

</style>
